<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<h2><c:choose>
	<c:when test="${link.new}">Share a link on project ${link.prj}</c:when>
	<c:otherwise>Update Link:${link.name}</c:otherwise>
</c:choose></h2>

<form:form modelAttribute="link">
	<table class="editTable">
		<tr>
			<th><form:hidden path="prj" /></th>
		</tr>
		<tr>
			<th><c:choose>
				<c:when test="${link.new}">
					Name: <form:errors path="name" cssClass="errors" />
					<br />
					<form:input path="name" size="40" maxlength="128" />
				</c:when>
				<c:otherwise>
					<form:hidden path="name" />
				</c:otherwise>
			</c:choose></th>
		</tr>
		<tr>
			<th>Link:<form:errors path="url" cssClass="errors" /> <br />
			<form:input path="url" size="40" maxlength="128" /></th>
		</tr>
		<tr>
			<th>Description: <form:errors path="description"
				cssClass="errors" /> <br />
			<form:textarea path="description" rows="10" cols="60" /></th>
		</tr>
		<tr>
			<td><c:choose>
				<c:when test="${link.new}">
					<p class="submit"><input type="submit" value="Submit" />&nbsp;
					<input type="reset" value="Reset" /></p>
				</c:when>
				<c:otherwise>
					<p class="submit"><input type="submit" value="Update" />&nbsp;
					<input type="reset" value="Reset" /></p>
				</c:otherwise>
			</c:choose></td>
		</tr>
	</table>
</form:form>
